package com.trade.module.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description:数据字典
 *
 * @Version v1.0 2017/4/21 20:31
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "base_dictionary")
public class Dictionary extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 4797330278428379278L;

    /**
     * Field description：字典名称
     */
    @Column(
            name = "dic_name",
            nullable = false,
            length = 64
    )
    private String dicName;

    /**
     * Field description：字典编码
     */
    @Column(
            name = "dic_code",
            nullable = false,
            length = 64
    )
    private String dicCode;

    /**
     * Field description：字典级别
     */
    @Column(
            name = "dic_level",
            nullable = false,
            length = 16
    )
    private String dicLevel;

    /**
     * Field description：上级节点
     */
    @Column(
            name = "dic_parent_id",
            length = 64
    )
    private String dicParentId;

    /**
     * Field description：字典状态
     */
    @Column(
            name = "dic_flag",
            nullable = false,
            length = 2
    )
    private String dicFlag;

    public String getDicName() {
        return dicName;
    }

    public void setDicName(String dicName) {
        this.dicName = dicName;
    }

    public String getDicCode() {
        return dicCode;
    }

    public void setDicCode(String dicCode) {
        this.dicCode = dicCode;
    }

    public String getDicLevel() {
        return dicLevel;
    }

    public void setDicLevel(String dicLevel) {
        this.dicLevel = dicLevel;
    }

    public String getDicParentId() {
        return dicParentId;
    }

    public void setDicParentId(String dicParentId) {
        this.dicParentId = dicParentId;
    }

    public String getDicFlag() {
        return dicFlag;
    }

    public void setDicFlag(String dicFlag) {
        this.dicFlag = dicFlag;
    }
}
